package io.github.heollhai.common.utils.tree;

import java.util.List;

/**
 * @Author: lmf
 * @Create: 2024/8/7 11:00
 * Description: 树节点接口
 */
public interface TreeNode<T extends TreeNode<T, V, K>, V, K> {
    V getId();

    K getPid();

    Integer getSort();

    List<T> getChildren();

    void addChildren(T children);
    void setChildren(List<T> children);
}
